package xin.marcher.module.replenished.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xin.marcher.module.common.core.JsonResult;
import xin.marcher.module.replenished.api.AvailableApi;
import xin.marcher.module.replenished.domain.request.AvailableRequest;

import javax.annotation.Resource;

/**
 *
 */
@RestController
@RequestMapping("/forJmeter")
public class AvailableController {

    @Resource
    private AvailableApi availableApi;

    /**
     * 同步可采商品 API
     *
     * @return  可采商品
     */
    @PostMapping("/syncAvailableProduct")
    public JsonResult syncAvailableProduct() {
        return availableApi.syncAvailableProduct(new AvailableRequest());
    }

}
